/* ==========================================
   ELEVATE - 高端生活管理助手样式
   ========================================== */

/* 全局重置与基础配置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 高级CSS变量定义 */
:root {
    /* 高端渐变色系 */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --secondary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --warning-gradient: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    --luxury-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    --glass-gradient: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    
    /* 精致背景系统 */
    --bg-primary: #0a0a0f;
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --bg-tertiary: rgba(255, 255, 255, 0.02);
    --bg-glass: rgba(255, 255, 255, 0.08);
    --bg-glass-dark: rgba(0, 0, 0, 0.3);
    
    /* 高级文字色彩 */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-accent: #667eea;
    
    /* 精致边框系统 */
    --border-glass: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(102, 126, 234, 0.3);
    --border-success: rgba(34, 197, 94, 0.3);
    
    /* 高级阴影系统 */
    --shadow-soft: 0 2px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 30px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 8px 50px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);
    --shadow-luxury: 0 10px 80px rgba(102, 126, 234, 0.2);
    
    /* 现代圆角系统 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* 动画与过渡 */
    --transition-fast: 0.15s ease-out;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-luxury: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* 安全区域 */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* 基础字体与排版 */
body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 主应用容器 */
.mobile-app {
    max-width: 414px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    box-shadow: var(--shadow-luxury);
}

/* 应用背景装饰系统 */
.app-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-gradient-primary {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--luxury-gradient);
    opacity: 0.05;
}

.bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: particleFloat 20s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 4s; }
.particle:nth-child(3) { left: 60%; animation-delay: 8s; }
.particle:nth-child(4) { left: 80%; animation-delay: 12s; }
.particle:nth-child(5) { left: 90%; animation-delay: 16s; }

@keyframes particleFloat {
    0% { 
        transform: translateY(100vh) scale(0); 
        opacity: 0; 
    }
    10% { 
        opacity: 1; 
        transform: translateY(90vh) scale(1);
    }
    90% { 
        opacity: 1; 
        transform: translateY(-10vh) scale(1);
    }
    100% { 
        opacity: 0; 
        transform: translateY(-20vh) scale(0);
    }
}

.bg-mesh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
}

.mesh-gradient {
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, #667eea 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, #764ba2 0%, transparent 25%);
    background-size: 200px 200px;
    animation: meshMove 30s linear infinite;
}

@keyframes meshMove {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-50px, -50px); }
    50% { transform: translate(-100px, 0); }
    75% { transform: translate(-50px, 50px); }
    100% { transform: translate(0, 0); }
}

/* ==========================================
   高端状态栏设计
   ========================================== */
.premium-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    height: calc(50px + var(--safe-area-top));
    padding-top: calc(8px + var(--safe-area-top));
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
    z-index: 10;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-time {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.premium-date {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.status-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-glow);
}

.status-right {
    display: flex;
    align-items: center;
}

.premium-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.signal-bars {
    display: flex;
    align-items: flex-end;
    gap: 1px;
}

.signal-bars span {
    width: 3px;
    background: var(--text-secondary);
    border-radius: 1px;
}

.signal-bars span:nth-child(1) { height: 4px; }
.signal-bars span:nth-child(2) { height: 6px; }
.signal-bars span:nth-child(3) { height: 8px; }
.signal-bars span:nth-child(4) { height: 10px; }

.premium-icon {
    font-size: 12px;
    color: var(--text-secondary);
}

.battery-indicator {
    width: 22px;
    height: 10px;
    border: 1px solid var(--text-secondary);
    border-radius: 2px;
    position: relative;
}

.battery-indicator::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 4px;
    background: var(--text-secondary);
    border-radius: 0 1px 1px 0;
}

.battery-fill {
    height: 100%;
    width: 75%;
    background: var(--success-gradient);
    border-radius: 1px;
}

/* ==========================================
   奢华主内容区域
   ========================================== */
.luxury-content {
    position: relative;
    z-index: 2;
    height: calc(100vh - 50px - 80px - var(--safe-area-top) - var(--safe-area-bottom));
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 32px;
}

.luxury-content::-webkit-scrollbar {
    display: none;
}

/* 页面管理系统 */
.premium-page {
    display: none;
    padding: 24px;
    animation: pageSlideIn var(--transition-luxury);
}

.premium-page.active {
    display: block;
}

@keyframes pageSlideIn {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================
   豪华页面头部设计
   ========================================== */
.luxury-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.premium-greeting .greeting-container {
    position: relative;
}

.luxury-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.title-main {
    display: block;
    color: var(--text-primary);
}

.title-accent {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.luxury-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

.premium-avatar-section {
    position: relative;
}

.avatar-container {
    position: relative;
    width: 60px;
    height: 60px;
}

.avatar-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--primary-gradient);
    border-radius: 50%;
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.05); }
}

.premium-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-glass);
    position: relative;
    z-index: 2;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: #22c55e;
    border: 2px solid var(--bg-primary);
    border-radius: 50%;
    z-index: 3;
}

.pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8); }
}

/* ==========================================
   奢华灵感卡片设计
   ========================================== */
.luxury-inspiration-card {
    position: relative;
    margin-bottom: 40px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    z-index: 0;
    filter: blur(8px);
    opacity: 0.6;
}

.card-surface {
    position: relative;
    z-index: 1;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 28px;
}

.inspiration-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.inspiration-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
}

.icon-glow {
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    opacity: 0.2;
    filter: blur(8px);
}

.inspiration-icon i {
    font-size: 20px;
    color: var(--text-accent);
    position: relative;
    z-index: 2;
}

.inspiration-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.card-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premium-date-display {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 2px;
}

.luxury-refresh-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.luxury-refresh-btn:active {
    transform: scale(0.95);
}

.btn-surface {
    position: absolute;
    inset: 0;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
}

.luxury-refresh-btn i {
    position: relative;
    z-index: 2;
    color: var(--text-secondary);
    font-size: 18px;
    transition: transform var(--transition-smooth);
}

.luxury-refresh-btn:hover i {
    transform: rotate(180deg);
}

.inspiration-content {
    position: relative;
}

.luxury-quote {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    font-style: italic;
}

.quote-signature {
    font-size: 14px;
    color: var(--text-muted);
    text-align: right;
    font-weight: 500;
}

/* ==========================================
   精英习惯追踪系统
   ========================================== */
.luxury-habits-section {
    margin-bottom: 40px;
}

.premium-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-glass);
}

.section-icon i {
    color: var(--text-accent);
    font-size: 14px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.premium-add-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.premium-add-btn:active {
    transform: scale(0.9);
}

.btn-glow {
    position: absolute;
    inset: -2px;
    background: var(--primary-gradient);
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0.8;
}

.premium-add-btn i {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 16px;
}

.luxury-habits-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.premium-habit-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.premium-habit-card:active {
    transform: scale(0.98);
}

.card-backdrop {
    position: absolute;
    inset: 0;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
}

.premium-habit-card.completed .card-backdrop {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    border-color: var(--border-success);
}

.habit-surface {
    position: relative;
    z-index: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.habit-checkbox-luxury {
    position: relative;
}

.habit-checkbox-luxury input[type="checkbox"] {
    display: none;
}

.luxury-checkbox {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-glass);
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.checkbox-glow {
    position: absolute;
    inset: -2px;
    background: var(--success-gradient);
    border-radius: 50%;
    opacity: 0;
    filter: blur(4px);
    transition: opacity var(--transition-smooth);
}

.habit-checkbox-luxury input[type="checkbox"]:checked + .luxury-checkbox {
    background: var(--success-gradient);
    border-color: #22c55e;
    transform: scale(1.1);
}

.habit-checkbox-luxury input[type="checkbox"]:checked + .luxury-checkbox .checkbox-glow {
    opacity: 0.6;
}

.luxury-checkbox i {
    color: transparent;
    font-size: 14px;
    transition: color var(--transition-smooth);
    position: relative;
    z-index: 2;
}

.habit-checkbox-luxury input[type="checkbox"]:checked + .luxury-checkbox i {
    color: white;
}

.habit-details {
    flex: 1;
}

.habit-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.habit-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.time-badge, .status-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

.time-badge {
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
}

.status-badge.completed {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.pending {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(102, 126, 234, 0.1));
    color: var(--text-accent);
    border: 1px solid var(--border-accent);
}

.habit-streak-luxury {
    display: flex;
    align-items: center;
}

.streak-visual {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--secondary-gradient);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
}

.streak-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
}

.streak-number {
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.streak-icon i {
    color: #ff6b6b;
    font-size: 14px;
    animation: fireFlicker 2s ease-in-out infinite;
}

@keyframes fireFlicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* ==========================================
   高级目标规划系统
   ========================================== */
.luxury-goals-section {
    margin-bottom: 40px;
}

.luxury-goals-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.premium-goal-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.premium-goal-card:active {
    transform: scale(0.98);
}

.goal-backdrop {
    position: absolute;
    inset: 0;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
}

.goal-surface {
    position: relative;
    z-index: 1;
    padding: 24px;
    display: flex;
    gap: 20px;
}

.goal-icon-luxury {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-backdrop {
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
}

.goal-icon-luxury i {
    font-size: 24px;
    color: white;
    position: relative;
    z-index: 2;
}

.goal-content-luxury {
    flex: 1;
    min-width: 0;
}

.goal-header-luxury {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 12px;
}

.goal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.goal-deadline-premium {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-glass);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    border: 1px solid var(--border-glass);
}

.goal-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.goal-progress-luxury {
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-track {
    flex: 1;
    height: 8px;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.progress-fill-luxury {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    width: var(--progress);
    transition: width var(--transition-smooth);
    position: relative;
}

.progress-fill-luxury.completed {
    background: var(--success-gradient);
}

.progress-glow {
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    filter: blur(8px);
    opacity: 0.3;
}

.progress-text-luxury {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-accent);
    min-width: 40px;
    text-align: right;
}

/* ==========================================
   智能统计面板
   ========================================== */
.luxury-stats-section {
    margin-bottom: 40px;
}

.luxury-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.premium-stat-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    transition: all var(--transition-smooth);
}

.premium-stat-card:active {
    transform: scale(0.95);
}

.stat-backdrop {
    position: absolute;
    inset: 0;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
}

.stat-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

.stat-icon {
    margin-bottom: 8px;
    color: var(--text-accent);
    font-size: 20px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================
   高级项目管理界面
   ========================================== */
.premium-header-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.premium-header-btn:active {
    transform: scale(0.9);
}

.premium-header-btn i {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 18px;
}

/* 豪华筛选标签 */
.luxury-filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.luxury-filter-tabs::-webkit-scrollbar {
    display: none;
}

.luxury-filter-tab {
    position: relative;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: all var(--transition-smooth);
    white-space: nowrap;
    overflow: hidden;
}

.luxury-filter-tab span {
    position: relative;
    z-index: 2;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-smooth);
}

.tab-glow {
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.luxury-filter-tab.active {
    border-color: var(--border-accent);
}

.luxury-filter-tab.active .tab-glow {
    opacity: 1;
}

.luxury-filter-tab.active span {
    color: white;
}

/* 精英项目列表 */
.luxury-projects-section {
    margin-bottom: 40px;
}

.luxury-project-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.premium-project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.premium-project-card:active {
    transform: scale(0.98);
}

.project-backdrop {
    position: absolute;
    inset: 0;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
}

.project-surface {
    position: relative;
    z-index: 1;
    padding: 24px;
}

.project-header-luxury {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.project-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.project-tags-luxury {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.luxury-tag {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.luxury-tag.frontend {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.luxury-tag.javascript {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.luxury-tag.react {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.1));
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.luxury-tag.typescript {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.project-status-luxury {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.project-status-luxury.in-progress {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.project-status-luxury.completed {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.project-desc-luxury {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.project-footer-luxury {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.project-progress-luxury {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.progress-percentage {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 40px;
    text-align: right;
}

.project-more-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.project-more-btn:active {
    background: var(--primary-gradient);
    color: white;
}

/* ==========================================
   智能周期任务系统
   ========================================== */
.luxury-cycles-section {
    margin-bottom: 40px;
}

.luxury-cycle-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.premium-cycle-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.premium-cycle-card:active {
    transform: scale(0.98);
}

.cycle-backdrop {
    position: absolute;
    inset: 0;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
}

.cycle-surface {
    position: relative;
    z-index: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cycle-info-luxury {
    flex: 1;
}

.cycle-header-luxury {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
}

.cycle-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.cycle-frequency-luxury {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.cycle-frequency-luxury.daily {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.cycle-frequency-luxury.weekly {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1));
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.cycle-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.cycle-next-luxury {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.cycle-next-luxury.urgent {
    color: #ef4444;
    font-weight: 600;
}

.luxury-cycle-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-smooth);
    overflow: hidden;
}

.luxury-cycle-btn:active {
    transform: scale(0.9);
}

.luxury-cycle-btn.pending {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
}

.luxury-cycle-btn.pending i {
    color: var(--text-secondary);
}

.luxury-cycle-btn.completed {
    background: var(--success-gradient);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.luxury-cycle-btn.completed i {
    color: white;
}

/* ==========================================
   奢华个人中心设计
   ========================================== */
.luxury-profile-header {
    position: relative;
    margin: -24px -24px 32px;
    padding: 32px 24px 80px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    overflow: hidden;
}

.profile-backdrop {
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
}

.backdrop-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.2), transparent);
}

.backdrop-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.pattern-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
}

.pattern-dot:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.pattern-dot:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; }
.pattern-dot:nth-child(3) { top: 40%; left: 60%; animation-delay: 2s; }

.pattern-dot {
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.profile-content-luxury {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.avatar-luxury-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}

.avatar-ring-outer, .avatar-ring-inner {
    position: absolute;
    border-radius: 50%;
}

.avatar-ring-outer {
    inset: -4px;
    background: conic-gradient(from 0deg, rgba(255,255,255,0.5), transparent, rgba(255,255,255,0.5));
    animation: ringRotate 8s linear infinite;
}

.avatar-ring-inner {
    inset: -2px;
    background: rgba(255,255,255,0.3);
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.avatar-luxury {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
    position: relative;
    z-index: 2;
}

.avatar-edit-luxury {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.avatar-edit-luxury:active {
    transform: scale(0.9);
}

.avatar-edit-luxury .btn-surface {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
}

.avatar-edit-luxury i {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 14px;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-title {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 16px;
    font-weight: 400;
}

.profile-badges-luxury {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.luxury-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.luxury-badge.vip {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.2));
    border-color: rgba(245, 158, 11, 0.5);
    color: #fbbf24;
}

.luxury-badge.certified {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.2));
    border-color: rgba(34, 197, 94, 0.5);
    color: #4ade80;
}

/* 高级统计卡片 */
.luxury-profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.premium-stat-card-profile {
    position: relative;
    border-radius: var(--radius-lg);
    aspect-ratio: 1;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.premium-stat-card-profile:active {
    transform: scale(0.95);
}

.premium-stat-card-profile .stat-content {
    gap: 8px;
}

.stat-icon-large {
    color: var(--text-accent);
    font-size: 24px;
}

.stat-value-large {
    font-size: 20px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label-large {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

/* ==========================================
   智能设置面板
   ========================================== */
.luxury-settings-section {
    margin-bottom: 40px;
}

.luxury-setting-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.premium-setting-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.premium-setting-card:active {
    transform: scale(0.98);
}

.setting-backdrop {
    position: absolute;
    inset: 0;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
}

.setting-surface {
    position: relative;
    z-index: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.setting-icon-luxury {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.setting-icon-luxury .icon-backdrop {
    background: var(--primary-gradient);
}

.setting-icon-luxury i {
    font-size: 20px;
    color: white;
    position: relative;
    z-index: 2;
}

.setting-info-luxury {
    flex: 1;
}

.setting-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.setting-description {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 豪华开关组件 */
.luxury-toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
    cursor: pointer;
}

.luxury-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider-luxury {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.toggle-handle {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    top: 3px;
    background: white;
    transition: var(--transition-smooth);
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
}

input:checked + .toggle-slider-luxury {
    background: var(--primary-gradient);
    border-color: var(--border-accent);
}

input:checked + .toggle-slider-luxury .toggle-handle {
    transform: translateX(24px);
}

/* ==========================================
   精英成就系统
   ========================================== */
.luxury-achievements-section {
    margin-bottom: 40px;
}

.luxury-achievement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.premium-achievement-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.premium-achievement-card:active {
    transform: scale(0.98);
}

.achievement-backdrop {
    position: absolute;
    inset: 0;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
}

.premium-achievement-card.earned .achievement-backdrop {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(102, 126, 234, 0.05));
    border-color: var(--border-accent);
}

.premium-achievement-card.locked .achievement-backdrop {
    background: var(--bg-tertiary);
    border-color: var(--border-glass);
    opacity: 0.6;
}

.achievement-surface {
    position: relative;
    z-index: 1;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.achievement-icon-luxury {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-achievement-card.earned .achievement-icon-luxury .icon-glow {
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
}

.premium-achievement-card.locked .achievement-icon-luxury .icon-glow {
    background: var(--bg-glass);
}

.achievement-icon-luxury i {
    font-size: 20px;
    position: relative;
    z-index: 2;
}

.premium-achievement-card.earned .achievement-icon-luxury i {
    color: white;
}

.premium-achievement-card.locked .achievement-icon-luxury i {
    color: var(--text-muted);
}

.achievement-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.achievement-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.achievement-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #22c55e;
    font-size: 16px;
}

.achievement-progress {
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-gradient) 0deg 162deg, var(--bg-glass) 162deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-circle::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--bg-primary);
    border-radius: 50%;
}

.progress-value {
    position: relative;
    z-index: 2;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-accent);
}

/* ==========================================
   奢华底部导航系统
   ========================================== */
.luxury-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 414px;
    z-index: 100;
    padding-bottom: var(--safe-area-bottom);
}

.nav-backdrop {
    position: absolute;
    inset: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
}

.backdrop-blur {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
}

.nav-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    padding: 12px 20px;
}

.luxury-nav-tab {
    position: relative;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-smooth);
    overflow: hidden;
}

.luxury-nav-tab:active {
    transform: scale(0.95);
}

.tab-surface {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tab-glow {
    position: absolute;
    inset: -2px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    opacity: 0;
    filter: blur(4px);
    transition: opacity var(--transition-smooth);
}

.luxury-nav-tab.active .tab-glow {
    opacity: 0.6;
}

.tab-icon {
    font-size: 20px;
    color: var(--text-muted);
    transition: all var(--transition-smooth);
}

.luxury-nav-tab.active .tab-icon {
    color: var(--text-accent);
    transform: scale(1.1);
}

.tab-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-smooth);
}

.luxury-nav-tab.active .tab-label {
    color: var(--text-accent);
    font-weight: 600;
}

/* ==========================================
   响应式适配和触觉反馈
   ========================================== */
@media (max-width: 375px) {
    .mobile-app {
        max-width: 100%;
    }
    
    .luxury-bottom-nav {
        width: 100%;
    }
    
    .luxury-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .luxury-profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (hover: none) {
    .premium-habit-card:hover,
    .premium-goal-card:hover,
    .premium-project-card:hover {
        transform: none;
    }
}

/* ==========================================
   高级动画系统
   ========================================== */
@keyframes luxuryFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes luxurySlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes luxuryGlow {
    0%, 100% {
        box-shadow: var(--shadow-medium);
    }
    50% {
        box-shadow: var(--shadow-glow);
    }
}

/* 页面加载动画 */
.premium-page.active {
    animation: luxuryFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 卡片悬停效果 */
.premium-habit-card:hover,
.premium-goal-card:hover,
.premium-project-card:hover,
.premium-stat-card:hover,
.premium-setting-card:hover,
.premium-achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-luxury);
}

/* 成功完成动画 */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.premium-habit-card.completed {
    animation: successPulse 0.6s ease-out;
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-glass);
    border-top: 2px solid var(--text-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==========================================
   滚动优化
   ========================================== */
.luxury-content {
    scroll-behavior: smooth;
}

.luxury-content::-webkit-scrollbar {
    width: 2px;
}

.luxury-content::-webkit-scrollbar-track {
    background: transparent;
}

.luxury-content::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 1px;
}

.luxury-content::-webkit-scrollbar-thumb:hover {
    background: var(--border-accent);
}

/* ==========================================
   打印和可访问性
   ========================================== */
@media print {
    .luxury-bottom-nav,
    .premium-status-bar,
    .app-background {
        display: none !important;
    }
    
    .mobile-app {
        max-width: none;
        box-shadow: none;
    }
    
    .luxury-content {
        height: auto;
        overflow: visible;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --border-glass: rgba(255, 255, 255, 0.3);
        --text-secondary: rgba(255, 255, 255, 0.9);
        --text-muted: rgba(255, 255, 255, 0.8);
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 焦点可见性 */
.luxury-nav-tab:focus-visible,
.premium-add-btn:focus-visible,
.luxury-refresh-btn:focus-visible {
    outline: 2px solid var(--text-accent);
    outline-offset: 2px;
}

/* ==========================================
   结束样式定义
   ========================================== */